Database reference guide

HOME

NSQL Functions overview

It is possible to modify the contents of a column used in the WHERE clause to further enhance the query that is being performed by using intrinsic functions. Consider a table with a surname field in which the surnames are of mixed case, so that Smith could appear as Smith, SMITH or smith etc. By applying the function UCASE (upper case), we can convert all the records for the Surname column to upper case before performing the query.

For example, the statement below forms a Domain that contains the various forms of Smith:

SELECT Count(*)

FROM Customer

WHERE UCASE(Surname) = “SMITH”;

  Online & Instructor-Led Courses | Training Videos | Webinar Recordings
© Alterian. All Rights Reserved. | Privacy Policy | Legal Notice